

exports.errHandler = (err , req , res , next) => {
    if(err === 1) {
        return res.send({code: 0 , msg : '参数错误'})
    }
    if(err === 2) {
        return res.send({code: 0 , msg : 'token解析失败'})
    }
    next()
}